<?php
namespace App\Logics;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Models\ChannelCateGoodsModel;

//逻辑处理
class ChannelCateGoodsLogic extends BaseLogic
{



    public function __construct( )
    {
        parent::__construct();

    }

    //获取一个商品的所有渠道信息
    public static function getListByGoodsId(int $goods_id,$fields=['*']){
        $data=ChannelCateGoodsModel::where('goods_id',$goods_id)->select($fields)->get();
        return ob_to_array($data);
    }

}